import java.awt.Frame;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.media.opengl.*;
import javax.media.opengl.awt.GLCanvas;

public class JoglTest1 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		GLProfile glp = GLProfile.getDefault(); // chooses the correct gl settings for the user
		GLCapabilities caps = new GLCapabilities(glp); // describes some capabilities a rendering context should use
		GLCanvas canvas = new GLCanvas(caps);
		
		final Frame frame = new Frame("AWT Window Test");
		frame.setSize(300,300);
		frame.add(canvas);
		frame.setVisible(true);
		
		frame.addWindowListener(new WindowAdapter() 
		{ 
			public void windowClosing(WindowEvent e)
			{
				frame.dispose();
				System.exit(0);
				
			}
		});
		
	}

}
